// 03admin/17examine/02bizLicenseExamine/bizLicenseExamine.js
var co = require('../../../resource/js/common.js')
var app = getApp()
var _this, _data, _pageNum
Page({

   /**
    * 页面的初始数据
    */
   data: {
      AuthList: [],
      hint: false,
      Auth_Status: '',
   },

   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function() {
      _pageNum=1
      _this = this
      _data = this.data
      this.getBizExamine()
   },
   //跳转到商家营业执照审核详情
   bizDetail: function(e) {
      var Biz_ID = e.currentTarget.dataset.id
      var Biz_Account = e.currentTarget.dataset.biz_account
      wx.navigateTo({
         url: '/04jyhs/examine/01bizLicenseExamine/01bizLicenseExamineDetail/bizLicenseExamineDetail?Biz_ID=' + Biz_ID + '&Biz_Account=' + Biz_Account,
      })
   },
   //获取审核商家营业执照列表
   getBizExamine: function() {
      var url = 'biz/Bizmg/getAuthList'
      co.getShareApi(url, {
         page: _pageNum,
         Users_ID: "jyhs"
      }, function(res) {
         if (res.code == 0) {
            var list = _data.AuthList.concat(res.data)
            _this.setData({
               AuthList: list,
            })
            _pageNum++
         } else {
            _this.setData({
               hint: true
            })
            co.toastAllText(res.msg)
         }
      })
   },
})